<% layout('/layouts/default.html', {title: '审计表管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa fa-list-alt"></i> 审计表管理
			</div>
			<div class="box-tools pull-right">
				<a href="#" class="btn btn-default" id="btnSearch" title="查询"><i class="fa fa-filter"></i> 查询</a>
				<% if(hasPermi('sys:smAudit:edit')){ %>
					<a href="${ctx}/sys/smAudit/form" class="btn btn-default btnTool" title="新增审计表"><i class="fa fa-plus"></i> 新增</a>
				<% } %>
			</div>
		</div>
		<div class="box-body">
			<#form:form id="searchForm" model="${smAudit}" action="${ctx}/sys/smAudit/listData" method="post" class="form-inline"
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
				<div class="form-group">
					<label class="control-label">业务类型：</label>
					<div class="control-inline width-120">
						<#form:select path="osType" dictType="DSMS_RZSJ" blankOption="true" class="form-control"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">操作用户名称：</label>
					<div class="control-inline">
						<#form:input path="opUserName" maxlength="100" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">客户端ip：</label>
					<div class="control-inline">
						<#form:input path="ipAddr" maxlength="15" class="form-control width-120"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">操作时间：</label>
					<div class="control-inline">
						<#form:input path="opTime" readonly="true" maxlength="20" class="form-control Wdate-datetime"
						dataFormat="datetime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/>
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-sm">查询</button>
					<button type="reset" class="btn btn-default btn-sm">重置</button>
				</div>
			</#form:form>
			<table id="dataGrid"></table>
			<div id="dataGridPage"></div>
		</div>
	</div>
</div>
<% } %>
<script>
// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	columnModel: [
		{header:'业务类型', name:'osType', index:'a.os_type', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){
			return '<a href="${ctx}/sys/smAudit/form?id='+row.id+'" class="btnList" data-title="编辑审计表">'+(val||row.id)+'</a>';
		}},
		{header:'操作用户名称', name:'opUserName', index:'a.op_user_name', width:150, align:"left"},
		{header:'操作用户id', name:'opUserId', index:'a.op_user_id', width:150, align:"left"},
		{header:'客户端ip', name:'ipAddr', index:'a.ip_addr', width:150, align:"left"},
		{header:'操作内容', name:'opContent', index:'a.op_content', width:150, align:"left"},
		{header:'操作时间', name:'opTime', index:'a.op_time', width:150, align:"center"}
	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		
	}
});
</script>